<? if (count($this->paginator)): ?>
<table class="table table-striped table-condensed table-hover">
<tr>
  <tr>
    <th>#</th>
    <th>email</th>
    <th>Yahoo</th>
    <th>reference By</th>
    <th>Action</th>
  </tr>
  <? foreach ($this->paginator as $item): ?>
  <tr>
    <td><?= $item['id'] ?></td>
    <td><?= $item['email'] ?></td>
    <td><?= $item['yahoo'] ?></td>
    <td><?= $item['reference_by'] ?></td>
    <td>
	  <? if ($item['user_enabled']): ?>
	    <a href="/manage/users/page/<?= (int)$this->page ?>?ch=<?= $item['id'] ?>" class="btn btn-mini btn-warning">Disable</a>
	  <? else: ?>
	    <a href="/manage/users/page/<?= (int)$this->page ?>?ch=<?= $item['id'] ?>" class="btn btn-mini btn-info">Enable</a>
	  <? endif; ?>
	</td>
  </tr>
  <? endforeach; ?>
</table>
<? endif; ?>

<? echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'valuations/pagination_control.phtml'); ?>
